package com.qixin.api.service;

import com.qixin.api.bean.ComPtUser;
import com.baomidou.mybatisplus.service.IService;
import com.qixin.api.bean.PtMoneyInfo;
import com.qixin.api.bean.ResultPage;
import com.qixin.api.bean.VoPage;
import javax.servlet.http.HttpSession;
import java.math.BigDecimal;
import java.sql.SQLException;


/**
 * <p>
 * 企业用户表 服务类
 * </p>
 *
 * @author 吕正睿
 * @since 2018-10-28
 */
public interface ComPtUserService extends IService<ComPtUser> {
	boolean login(ComPtUser comPtUser, HttpSession session);
	ResultPage<ComPtUser> selectALL(VoPage voPage)  ;
	boolean addmoney(HttpSession session,Double moeny,Long peopleId);
	boolean offmoney(HttpSession session,Double moeny,Long peopleId);
	ResultPage<ComPtUser> selectphone(VoPage voPage, Long phone)  ;
	ResultPage<ComPtUser> selectMyPage(VoPage voPage, HttpSession session,ComPtUser comPtUser)  ;
	boolean update(ComPtUser comPtUser, HttpSession session);
	int sepeople(Long id);
	int chargenum(Long id);
	long carnum(String ptname);
	String checkup(ComPtUser comPtUser, Long[] filesId) throws SQLException;

	String license(Long id);
	int mov(Long id);

	//给车辆分配资金之后更改企业余额
	int updatepartgivemoney(PtMoneyInfo ptMoneyInfo);
	//给车辆回收资金之后更改企业余额
	int updatepartremovemoney(PtMoneyInfo ptMoneyInfo);
	/**
	 * 微信公众号 调用  个人信息
	 * @param userId  用户ID
	 * @return
	 */
	ComPtUser findUserInfoByUserIdForWeChart(Long userId );
	ComPtUser findUserInfoByPtUserIdForWeChart(Long userId );
//企业忘记密码
	String updatept(String param,String code);
}
